<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>试卷管理 - 智慧题库</title>
    <link href="../assets/css/tailwind.css" rel="stylesheet">
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet">
</head>
<body class="font-inter bg-gray-50 min-h-screen flex flex-col bg-education">
    <!-- 背景装饰元素 -->
    <div class="absolute inset-0 overflow-hidden -z-10">
        <div class="absolute top-10 left-10 w-40 h-40 rounded-full bg-primary/10 animate-float">
            <div class="w-full h-full flex items-center justify-center text-primary/20 text-6xl education-icon">
                <i class="fa fa-book"></i>
            </div>
        </div>
        <div class="absolute bottom-20 right-20 w-60 h-60 rounded-full bg-secondary/10 animate-float" style="animation-delay: -2s">
            <div class="w-full h-full flex items-center justify-center text-secondary/20 text-7xl education-icon">
                <i class="fa fa-graduation-cap"></i>
            </div>
        </div>
        <div class="absolute top-1/3 right-1/4 w-32 h-32 rounded-full bg-accent/10 animate-float" style="animation-delay: -4s">
            <div class="w-full h-full flex items-center justify-center text-accent/20 text-5xl education-icon">
                <i class="fa fa-lightbulb-o"></i>
            </div>
        </div>
        <div class="absolute bottom-1/3 left-1/3 w-28 h-28 rounded-full bg-primary/10 animate-float" style="animation-delay: -1s">
            <div class="w-full h-full flex items-center justify-center text-primary/20 text-4xl education-icon">
                <i class="fa fa-pencil-square-o"></i>
            </div>
        </div>
    </div>

    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white/90 backdrop-blur-sm shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <div class="w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center text-primary">
                    <i class="fa fa-question-circle"></i>
                </div>
                <h1 class="text-xl font-bold text-dark ml-0 md:ml-[-2rem]">智慧题库管理系统</h1>
            </div>
            
            <!-- 顶部导航 -->
            <div class="hidden md:flex items-center space-x-2">
                <a href="AdminDashboard.html" class="nav-item">
                    <i class="fa fa-home mr-2"></i> 控制面板
                </a>
                <a href="QuestionManagement.html" class="nav-item">
                    <i class="fa fa-book mr-2"></i> 题库管理
                </a>
                <a href="ExamManagement.html" class="nav-item active">
                    <i class="fa fa-graduation-cap mr-2"></i> 考试管理
                </a>
                <a href="TextbookVersionList.html" class="nav-item">
                    <i class="fa fa-archive mr-2"></i> 教材管理
                </a>
                <a href="StatisticsAnalysis.html" class="nav-item">
                    <i class="fa fa-bar-chart mr-2"></i> 数据分析
                </a>
                <a href="SystemSettings.html" class="nav-item">
                    <i class="fa fa-cog mr-2"></i> 系统设置
                </a>
            </div>
            
            <div class="flex items-center space-x-4">
                <button class="p-2 text-muted hover:text-primary transition-colors relative">
                    <i class="fa fa-bell"></i>
                    <span class="absolute top-1 right-1 w-2 h-2 bg-accent rounded-full"></span>
                </button>
                <div class="flex items-center space-x-2">
                    <img src="https://picsum.photos/id/64/40/40" alt="用户头像" class="w-8 h-8 rounded-full object-cover border-2 border-primary/20">
                    <span class="hidden md:inline text-sm font-medium text-dark">张老师</span>
                    <i class="fa fa-angle-down text-muted"></i>
                </div>
                <button class="md:hidden p-2 text-muted hover:text-primary transition-colors" id="mobile-menu-button">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="flex-grow flex">
        <!-- 左侧导航栏 -->
        <aside id="sidebar" class="w-64 bg-sidebar-bg shadow-sidebar transition-all duration-300 h-[calc(100vh-64px)] sticky top-[64px] overflow-y-auto">
            <!-- 考试管理菜单 -->
            <div class="p-4 border-b border-gray-200">
                <h3 class="text-lg font-bold text-center text-muted uppercase tracking-wider">考试管理</h3>
            </div>
            <div class="p-2">
                <a href="ExamManagement.html" class="sidebar-item">
                    <i class="fa fa-calendar"></i>
                    <span>考试安排</span>
                </a>
                <div class="sidebar-item active">
                    <i class="fa fa-file-text-o"></i>
                    <span>试卷管理</span>
                </div>
                <a href="CreateExamPaper.html" class="sidebar-item">
                    <i class="fa fa-plus-circle"></i>
                    <span>创建试卷</span>
                </a>
                <a href="StudentManagement.html" class="sidebar-item">
                    <i class="fa fa-users"></i>
                    <span>考生管理</span>
                </a>
                <a href="GradeManagement.html" class="sidebar-item">
                    <i class="fa fa-check-square-o"></i>
                    <span>成绩管理</span>
                </a>
            </div>
        </aside>

        <!-- 内容区域 -->
        <div class="flex-grow p-6">
            <!-- 页面标题 -->
            <div class="mb-8">
                <div class="flex items-center justify-between">
                    <div>
                        <h2 class="text-[clamp(1.5rem,3vw,2rem)] font-bold text-dark">试卷管理</h2>
                        <p class="text-muted mt-2">管理系统试卷，包括创建、编辑、发布和归档</p>
                    </div>
                    <div class="flex space-x-3">
                        <button class="px-4 py-2 bg-white border border-gray-300 text-dark rounded-lg shadow-sm hover:bg-gray-50 transition-colors">
                            <i class="fa fa-filter mr-2"></i>筛选
                        </button>
                        <a href="CreateExamPaper.html" class="px-4 py-2 bg-primary text-white rounded-lg shadow-sm hover:bg-primary/90 transition-colors">
                            <i class="fa fa-plus mr-2"></i>创建试卷
                        </a>
                    </div>
                </div>
            </div>

            <!-- 试卷统计概览 -->
            <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
                <div class="stat-card rounded-2xl p-6 card-hover">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-muted text-sm">总试卷数</p>
                            <h3 class="text-3xl font-bold text-dark mt-1">156</h3>
                            <p class="text-accent text-sm mt-2 flex items-center">
                                <i class="fa fa-arrow-up mr-1"></i> 较上月增长 12%
                            </p>
                        </div>
                        <div class="w-12 h-12 bg-primary/10 rounded-xl flex items-center justify-center text-primary">
                            <i class="fa fa-file-text-o text-xl"></i>
                        </div>
                    </div>
                </div>
                
                <div class="stat-card rounded-2xl p-6 card-hover">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-muted text-sm">已发布</p>
                            <h3 class="text-3xl font-bold text-dark mt-1">89</h3>
                            <p class="text-accent text-sm mt-2 flex items-center">
                                <i class="fa fa-check mr-1"></i> 发布率 57%
                            </p>
                        </div>
                        <div class="w-12 h-12 bg-green-100 rounded-xl flex items-center justify-center text-green-600">
                            <i class="fa fa-check-circle text-xl"></i>
                        </div>
                    </div>
                </div>
                
                <div class="stat-card rounded-2xl p-6 card-hover">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-muted text-sm">进行中</p>
                            <h3 class="text-3xl font-bold text-dark mt-1">23</h3>
                            <p class="text-accent text-sm mt-2 flex items-center">
                                <i class="fa fa-clock-o mr-1"></i> 活跃考试
                            </p>
                        </div>
                        <div class="w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center text-blue-600">
                            <i class="fa fa-play-circle text-xl"></i>
                        </div>
                    </div>
                </div>
                
                <div class="stat-card rounded-2xl p-6 card-hover">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-muted text-sm">草稿状态</p>
                            <h3 class="text-3xl font-bold text-dark mt-1">44</h3>
                            <p class="text-muted text-sm mt-2 flex items-center">
                                <i class="fa fa-edit mr-1"></i> 待完善
                            </p>
                        </div>
                        <div class="w-12 h-12 bg-yellow-100 rounded-xl flex items-center justify-center text-yellow-600">
                            <i class="fa fa-edit text-xl"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 试卷列表 -->
            <div class="bg-white rounded-2xl shadow-card">
                <div class="p-6 border-b border-gray-200">
                    <div class="flex items-center justify-between">
                        <h3 class="text-lg font-bold text-dark">试卷列表</h3>
                        <div class="flex space-x-2">
                            <select class="px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary/50">
                                <option>全部状态</option>
                                <option>已发布</option>
                                <option>进行中</option>
                                <option>已结束</option>
                                <option>草稿</option>
                            </select>
                            <select class="px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary/50">
                                <option>全部科目</option>
                                <option>数学</option>
                                <option>语文</option>
                                <option>英语</option>
                                <option>物理</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">试卷名称</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">科目</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">总分</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">时长</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">创建时间</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10">
                                            <div class="h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center">
                                                <i class="fa fa-file-text-o text-primary"></i>
                                            </div>
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-dark">2024年春季数学期中考试</div>
                                            <div class="text-sm text-muted">高中一年级</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">100分</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">120分钟</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="inline-flex px-2 py-1 text-xs font-semibold rounded-full bg-green-100 text-green-800">已发布</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-muted">2024-01-15</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-eye"></i> 预览
                                    </button>
                                    <button class="text-blue-600 hover:text-blue-700 mr-3">
                                        <i class="fa fa-edit"></i> 编辑
                                    </button>
                                    <button class="text-red-500 hover:text-red-600">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10">
                                            <div class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
                                                <i class="fa fa-file-text-o text-blue-600"></i>
                                            </div>
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-dark">英语单元测试卷</div>
                                            <div class="text-sm text-muted">初中二年级</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">英语</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">80分</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">90分钟</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="inline-flex px-2 py-1 text-xs font-semibold rounded-full bg-blue-100 text-blue-800">进行中</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-muted">2024-01-14</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-eye"></i> 预览
                                    </button>
                                    <button class="text-blue-600 hover:text-blue-700 mr-3">
                                        <i class="fa fa-edit"></i> 编辑
                                    </button>
                                    <button class="text-red-500 hover:text-red-600">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10">
                                            <div class="h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center">
                                                <i class="fa fa-file-text-o text-yellow-600"></i>
                                            </div>
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-dark">物理实验报告</div>
                                            <div class="text-sm text-muted">高中二年级</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">物理</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">60分</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">45分钟</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="inline-flex px-2 py-1 text-xs font-semibold rounded-full bg-yellow-100 text-yellow-800">草稿</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-muted">2024-01-13</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-eye"></i> 预览
                                    </button>
                                    <button class="text-blue-600 hover:text-blue-700 mr-3">
                                        <i class="fa fa-edit"></i> 编辑
                                    </button>
                                    <button class="text-red-500 hover:text-red-600">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10">
                                            <div class="h-10 w-10 rounded-full bg-gray-100 flex items-center justify-center">
                                                <i class="fa fa-file-text-o text-gray-600"></i>
                                            </div>
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-dark">语文阅读理解</div>
                                            <div class="text-sm text-muted">小学六年级</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">语文</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">50分</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">60分钟</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="inline-flex px-2 py-1 text-xs font-semibold rounded-full bg-gray-100 text-gray-800">已结束</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-muted">2024-01-12</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-eye"></i> 预览
                                    </button>
                                    <button class="text-blue-600 hover:text-blue-700 mr-3">
                                        <i class="fa fa-edit"></i> 编辑
                                    </button>
                                    <button class="text-red-500 hover:text-red-600">
                                        <i class="fa fa-trash"></i> 删除
                                    </button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <!-- 分页 -->
                <div class="px-6 py-4 border-t border-gray-200">
                    <div class="flex items-center justify-between">
                        <div class="text-sm text-muted">
                            显示 1 到 4 条，共 156 条记录
                        </div>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 text-sm border border-gray-300 rounded hover:bg-gray-50">上一页</button>
                            <button class="px-3 py-1 text-sm bg-primary text-white rounded">1</button>
                            <button class="px-3 py-1 text-sm border border-gray-300 rounded hover:bg-gray-50">2</button>
                            <button class="px-3 py-1 text-sm border border-gray-300 rounded hover:bg-gray-50">3</button>
                            <button class="px-3 py-1 text-sm border border-gray-300 rounded hover:bg-gray-50">下一页</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>
</div>

<!-- 引入公共样式和脚本 -->
<link rel="stylesheet" href="../css/admin-styles.css">
<script src="../js/admin-scripts.js"></script>
</body>
</html> 